﻿@using BusinessLayer.RegInfo
@using BusinessLayer.RegInfo.Entities
@using CommandLib
@using FindArtInfo.Common
@using Resources
@model FindArtInfo.Models.PartialMenuLeftModel   
<table cellspacing="0" cellpadding="0" border="0" id="table1" class="menuleft" width="100%">
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/home.html">@Html.Raw(Multi.PartialMenuLeftHome)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/advanced-search.html">@Html.Raw(Multi.PartialMenuLeftAdvancedSearch)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/monogram-search.html">@Html.Raw(Multi.PartialMenuLeftMonogramSearch)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/A/browse-by-artist.html">@Html.Raw(Multi.PartialMenuLeftBrowseByArtist)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/A/browse-signatures.html">@Html.Raw(Multi.PartialMenuLeftBrowseBySignatures)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/art-pictures.html">@Html.Raw(Multi.PartialMenuLeftArtPictures)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/artist-signatures.html">@Html.Raw(Multi.PartialMenuLeftSignaturesPictures)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;"><a target="_blank" href="http://forum.findartinfo.com/forum.asp?FORUM_ID=2" >@Html.Raw(Multi.PartialMenuLeftArtForum)</a>                
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/art-links.html">@Html.Raw(Multi.PartialMenuLeftArtLinks)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/submit-your-site.html">@Html.Raw(Multi.PartialMenuLeftSubmitYourSite)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/faq.html">@Html.Raw(Multi.PartialMenuLeftFAQ)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;">
            <a href="http://www.auctions.findartinfo.com/">@Html.Raw(Multi.PartialMenuLeftAuctionCalendar)</a>
        </td>
    </tr>
    <tr>
        <td style="height: 20px; padding-top: 2px; padding-bottom: 0px;"><a target="_blank" href="http://e-store.findartinfo.com/">E-Store </a></td>
    </tr>    
</table>
<table>
<tr><td><br>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_favorites"></a>
<a class="addthis_button_print"></a>
<span class="addthis_separator">|</span>
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=findart" class="addthis_button_expanded">More</a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=findart"></script>
<!-- AddThis Button END -->
</td>
</tr>
</table>
<p align="left">
    @if (Session[Constants.SessionKey.SESSION_USER_LOGIN] != null)
    {
            
        Account account = (Account) Session[Constants.SessionKey.SESSION_USER_LOGIN];
        DateTime dateTimeNow = new CommonBL().GetDateTimeNow();
        TimeSpan timeSpan = Convert.ToDateTime(account.EndDate) - dateTimeNow;
        //var point = new AccountBL().GetAllCouponByAccount(account.email, 1);
        //var couponCode = new TB_Marketing_Coupon_DetailBL().GetTopCoupon();
        <table width="189" border="0" cellspacing="0" cellpadding="2">
            <tr>
                <td colspan="2">
                    <b>@Html.Raw(Multi.PartialMenuLeftLoginWellcome)</b>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    @Html.Raw(string.Format(Multi.PartialMenuLeftLoginAccountName, account.LastName))
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    @Html.Raw(string.Format(Multi.PartialMenuLeftLoginExpiresDate, timeSpan.Days))
                </td>
            </tr>               
            <tr>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 10px;">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2">                       
                    <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/account-info.html" >@Multi.PartialMenuLeftLoginAccountDetail</a>
                </td>
            </tr>
            <tr>
                <td colspan="2">                        
                    <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/change-password.html" >@Multi.PartialMenuLeftLoginChangePass</a>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/renew.html">@Html.Raw(Multi.PartialMenuLeftLinkRenew)</a>
                </td>
            </tr>
            <tr>
                <td colspan="2">                          
                    <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/logout.html">@Html.Raw(Multi.PartialMenuLeftLoginLogout)</a>                      
                </td>
            </tr>
        </table>
    }
    else
    {
        using (Html.BeginForm("Index", "Home", FormMethod.Post))
        {                             
            <table cellspacing="0" cellpadding="2" border="0" class="menuleftLogin">
                <tbody>
                <tr>
                    <td colspan="2"><strong>@Multi.PartialMenuLeftLoginTitle</strong>@Html.HiddenFor(m => m.ReturnUrl)</td>
                </tr>
                <tr>
                    <td width="71">@Multi.PartialMenuLeftLoginEmail</td>
                    <td width="110">@Html.TextBoxFor(m => m.Email, new {@size = "15"})</td>
                </tr>
                <tr>
                    <td>@Multi.PartialMenuLeftLoginPassWord</td>
                    <td>@Html.PasswordFor(m => m.PassWord, new {@size = "15"})</td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" class="knap" onmouseout="co(this, 'out');" onmouseover=" co(this, 'in');" value="@Multi.PartialMenuLeftLoginSubmit"/></td>
                </tr>
                <tr>
                    <td colspan="2">
                        @Html.ValidationMessageFor(m => m.Email)
                        @Html.Raw(Server.HtmlDecode(Html.ValidationMessageFor(m => m.MessageResultLogin).ToString()))
                    </td>
                </tr>
                <tr>
                    <td colspan="2">                             
                        <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/register.html">@Multi.PartialMenuLeftLinkRegister</a>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">                             
                        <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/login-renew.html">@Html.Raw(Multi.PartialMenuLeftLinkRenew)</a>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">                             
                        <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/forgot-password.html">@Html.Raw(Multi.PartialMenuLeftLinkForgotPassword)</a>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2"><br><br></td>
                </tr>
            </table>
        }
    }                                                       
</p>
<p align="center"><br /><br />
    <script type="text/javascript"><!--
        google_ad_client = "ca-pub-9919834382971549";
        /* Findartinfo.com (Menu Bred) */
        google_ad_slot = "9563168955";
        google_ad_width = 160;
        google_ad_height = 600;
//-->
</script>
    <script type="text/javascript"
src="~/Scripts/show_ads.js">
</script>
</p>